package com.yoomiito.app.adapter.material

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.yoomiito.app.R
import com.yoomiito.app.utils.ImageLoader
import com.yoomiito.app.widget.RoundImageView

class PicAdapter(data:List<String>) :BaseQuickAdapter<String,BaseViewHolder>(R.layout.item_image, data){
    override fun convert(helper: BaseViewHolder?, item: String?) {
        helper?.setGone(R.id.item_image_price,false)
        helper?.getView<RoundImageView>(R.id.iv_photo).let {
            ImageLoader.getInstance().into(mContext,item,it,R.drawable.default_material_small_pic)
        }
    }

}